package com.ruoyi.serve.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务列表对象 server_info
 * 
 * @author liu
 * @date 2023-11-09
 */
public class ServerInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务器设备主键 */
    @Excel(name = "服务器设备主键")
    private Long serverId;

    /** 服务器系统类型 */
    @Excel(name = "服务器系统类型")
    private String systemType;

    /** 服务器ip地址 */
    @Excel(name = "服务器ip地址")
    private String hostIp;

    /** ssh访问端口 */
    private String sshPort;

    /** 登入账号用户名 */
    private String userName;

    /** 登入密码 */
    private String password;

    /** 总内存 */
    @Excel(name = "总内存")
    private String totalMemory;

    /** 已使用内存 */
    @Excel(name = "已使用内存")
    private String useMemory;

    /** 总磁盘 */
    @Excel(name = "总磁盘")
    private String totalDisk;

    /** 使用磁盘 */
    @Excel(name = "使用磁盘")
    private String useDisk;

    /** cpu使用百分比 */
    @Excel(name = "cpu使用百分比")
    private String cpuOccupy;

    /** 是否ping通 0不通 1通 */
    @Excel(name = "是否ping通 0不通 1通")
    private Integer isPing;

    /** ping响应延迟 */
    @Excel(name = "ping响应延迟")
    private String pingDelay;

    public void setServerId(Long serverId) 
    {
        this.serverId = serverId;
    }

    public Long getServerId() 
    {
        return serverId;
    }
    public void setSystemType(String systemType) 
    {
        this.systemType = systemType;
    }

    public String getSystemType() 
    {
        return systemType;
    }
    public void setHostIp(String hostIp) 
    {
        this.hostIp = hostIp;
    }

    public String getHostIp() 
    {
        return hostIp;
    }
    public void setSshPort(String sshPort) 
    {
        this.sshPort = sshPort;
    }

    public String getSshPort() 
    {
        return sshPort;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setTotalMemory(String totalMemory) 
    {
        this.totalMemory = totalMemory;
    }

    public String getTotalMemory() 
    {
        return totalMemory;
    }
    public void setUseMemory(String useMemory) 
    {
        this.useMemory = useMemory;
    }

    public String getUseMemory() 
    {
        return useMemory;
    }
    public void setTotalDisk(String totalDisk) 
    {
        this.totalDisk = totalDisk;
    }

    public String getTotalDisk() 
    {
        return totalDisk;
    }
    public void setUseDisk(String useDisk) 
    {
        this.useDisk = useDisk;
    }

    public String getUseDisk() 
    {
        return useDisk;
    }
    public void setCpuOccupy(String cpuOccupy) 
    {
        this.cpuOccupy = cpuOccupy;
    }

    public String getCpuOccupy() 
    {
        return cpuOccupy;
    }
    public void setIsPing(Integer isPing)
    {
        this.isPing = isPing;
    }

    public Integer getIsPing()
    {
        return isPing;
    }
    public void setPingDelay(String pingDelay) 
    {
        this.pingDelay = pingDelay;
    }

    public String getPingDelay() 
    {
        return pingDelay;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("serverId", getServerId())
            .append("systemType", getSystemType())
            .append("hostIp", getHostIp())
            .append("sshPort", getSshPort())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("totalMemory", getTotalMemory())
            .append("useMemory", getUseMemory())
            .append("totalDisk", getTotalDisk())
            .append("useDisk", getUseDisk())
            .append("cpuOccupy", getCpuOccupy())
            .append("isPing", getIsPing())
            .append("pingDelay", getPingDelay())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
